import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const cityModule = {
    namespaced: true,
    state: {
        cityId: '310100',
        cityName: '上海',
    },
    mutations: {
        changeCityName(state, name) {
            state.cityName = name
        },
        changeCityId(state, id) {
            state.cityId = id
            //console.log(state.cityId)
        }
    },
    actions: {

    }
}

export default cityModule